package cn.kgc.service.impl;

import cn.kgc.client.ProClient;
import cn.kgc.entity.Product;
import cn.kgc.service.ProService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProServiceImpl implements ProService {

    @Autowired
    private ProClient proClient;

    @Override
    public PageInfo<Product> findProList(String productName, Integer pageId) {
        return proClient.getProductList(productName,pageId);
    }
}
